package com.neusoft.feign;

import com.neusoft.po.Emp;
import com.neusoft.po.ResponseBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "provider-server",fallback = EmpFeignError.class,contextId = "provider-server3")
public interface EmpFeignClient {

    @GetMapping("emp/getEmpByNo/{empno}")
    ResponseBean<Emp> getEmpByNo(@PathVariable("empno") Integer empno);
}
